Int (number)

Basic and Crystal syntax.

Argument

Number value

Returns

Whole number value

Action

Int returns the integer portion of a given number.

Examples

The following examples are applicable to both Basic and Crystal syntax:

Int (123.678)

Returns 123.

Int (-123.678)

Returns -124.

Int (-123.1)

Returns -124.

Comments

Fix (-10.2)

Truncate (-10.2)

Both return -10.

Int (-10.2)

Returns -11.

Related topics

Fix

Truncate (x), Truncate (x, #places)



Seagate Software, Inc.
http://www.seagatesoftware.com
Please send comments to:
techpubs@seagatesoftware.com